package cn.exrick.service;

import cn.exrick.pojo.TbResource;
import cn.exrick.pojo.common.DataTablesResult;
import cn.exrick.pojo.front.ResourceResult;
import cn.exrick.utils.mybatis.Page;

import java.util.List;

/**
 * @Description:
 */
public interface ResourceService {

    DataTablesResult getResourcePage(int draw, int start, int length, String search, Long catId,
                                     String minDate, String maxDate, String orderCol, String orderDir);

    int save(TbResource tbResource);

    int updateStatus(Long id);

    Page<ResourceResult> getResourcePageForApi(int page, int size, Long category, String search);

    ResourceResult getDetailForApi(Long resourceId);

}
